<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>SimpleVerify</title>
    <script src="js/jquery-1.12.4.min.js"></script>
</head>
<script>

    function yanzheng(){
        var json={
            'code':$("#code").val()
        }
        $.post('server/checkVerify.php',json,function(jsonData){
            console.log(jsonData);
            if(jsonData.STATUS == "1"){
                alert('验证成功！');
            }
            else{
                alert(jsonData.MESSAGE);
            }
        },'json')
    }
</script>
<body>
<img src="server/getVerify.php" alt="">
<input type="text" id="code">
<a onclick="yanzheng()">验证</a>
</body>
</html>